﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Kooboo.Web.Mvc;

namespace Kooboo.Web.Areas.Commerce.Controllers
{
    [Authorize(Roles = "Administrator")]
    public class ControllerBase : Controller
    {
        protected virtual ActionResult RedirectToIndex()
        {
            var routes = this.ControllerContext.RequestContext.AllRouteValues();

            routes.Add("Area", "Commerce");

            return RedirectToAction("Index", routes);
        }
    }
}
